package com.zx.jhpt.login;

import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zx.framework.plat.login.LoginAdapterController;
import com.zx.framework.plat.user.vo.UserVo;
import com.zx.jhpt.service.DeptTempService;
import com.zx.jhpt.service.FxfkjzService;

@Controller
public class IndexController extends LoginAdapterController {

	private static final Logger LOGGER = Logger.getLogger(IndexController.class);
	@Resource
	private DeptTempService deptTempService;
	@Resource
	private FxfkjzService fxfkjzService;
	
	
	//后台主页
	@RequestMapping("/index")
	@ResponseBody
	@Deprecated
	public Map<String, Object> index(Model model){
		UserVo login = getSessionKeyObject(UserVo.class);
		if(null == login){
			return clientMap().failure().code(2).message("请重新登录！").getMap();
		}
		return clientMap().success().message("进入后台！").getMap();
	}
	
	@RequestMapping("/markdata")
	@ResponseBody
	public Map<String, Object> markdata(){
		return clientMap().success().message("success！").getMap();
	}
}
